﻿using System;
using System.Diagnostics;
using Dcm.ConfigMapAttributes;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Dcm.Tests.ConfigMapAttributes
{
    [TestClass]
    public class CommandLineArgsTests
    {
        [TestInitialize()]
        public void Startup()
        {
            Debug.WriteLine("Arguments="+string.Join(",",CommandLineArgs.GetSetterArgs()));
        }

        [TestMethod]
        public void CommandLineArgsHappyPath()
        {
            const string Expected = "Success";
            var actual = DynamicConfigurationManager.DynamicConfigurationManager.AppSettings["CommandLineArgsHappyPath"];
            Assert.AreEqual(Expected, actual);
        }
    }
}
